package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 门店商品套餐分类管理对象 product_package_category
 *
 * @author ruoyi
 * @date 2025-05-28
 */
public class ProductPackageCategory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID，自增唯一标识 */
    private Long id;

    /** 分类名称，例如“主食套餐”“饮品套餐”等，不允许为空 */
    @Excel(name = "分类名称，例如“主食套餐”“饮品套餐”等，不允许为空")
    private String categoryName;

    /** 分类ID，唯一标识分类的代码，例如“MAIN_MEAL”“DRINK”等，不允许为空且唯一 */
    @Excel(name = "分类ID，唯一标识分类的代码，例如“MAIN_MEAL”“DRINK”等，不允许为空且唯一")
    private String categoryCode;

    /** 套餐数，该分类下包含的套餐数量，默认为0 */
    @Excel(name = "套餐数，该分类下包含的套餐数量，默认为0")
    private Long packageCount;

    /** 排序/顺序，用于控制分类在点单页面中的展示顺序，数字越小越靠前（默认0） */
    @Excel(name = "排序/顺序，用于控制分类在点单页面中的展示顺序，数字越小越靠前", readConverterExp = "默=认0")
    private Long displayOrder;

    /** 状态，0=禁用，1=启用（默认启用），用于控制分类是否可用 */
    @Excel(name = "状态，0=禁用，1=启用", readConverterExp = "默=认启用")
    private Integer status;

    /** 点单时改价，控制是否允许在点单时修改该分类下商品的价格 */
    @Excel(name = "点单时改价，控制是否允许在点单时修改该分类下商品的价格")
    private String allowPriceChange;

    /** 整单折扣，控制该分类是否参与整单折扣计算 */
    @Excel(name = "整单折扣，控制该分类是否参与整单折扣计算")
    private String allowOrderDiscount;

    /** 折扣方式，定义该分类的折扣计算方式 */
    @Excel(name = "折扣方式，定义该分类的折扣计算方式")
    private String discountMethod;

    /** 属于配赠配品，控制该分类是否属于配赠或配品 */
    @Excel(name = "属于配赠配品，控制该分类是否属于配赠或配品")
    private String isGiftOrAddon;

    /** 支持自助点单，控制该分类是否支持自助点单 */
    @Excel(name = "支持自助点单，控制该分类是否支持自助点单")
    private String supportSelfOrdering;

    /** 参与最低消费，控制该分类是否计入最低消费金额 */
    @Excel(name = "参与最低消费，控制该分类是否计入最低消费金额")
    private String includeInMinConsumption;

    /** 参与会员积分，控制该分类是否参与会员积分计算 */
    @Excel(name = "参与会员积分，控制该分类是否参与会员积分计算")
    private String includeInMemberPoints;

    /** 参与积分兑换，控制该分类是否支持积分兑换 */
    @Excel(name = "参与积分兑换，控制该分类是否支持积分兑换")
    private String includeInPointsRedemption;

    /** 参与积分抵现，控制该分类是否支持积分抵现 */
    @Excel(name = "参与积分抵现，控制该分类是否支持积分抵现")
    private String includeInPointsDeduction;

    /** 参与手动优惠，控制该分类是否支持手动优惠 */
    @Excel(name = "参与手动优惠，控制该分类是否支持手动优惠")
    private String includeInManualDiscount;

    /** 打印设置，存储分类的打印规则，例如打印机名称、打印份数等，以JSON格式存储 */
    @Excel(name = "打印设置，存储分类的打印规则，例如打印机名称、打印份数等，以JSON格式存储")
    private String printSettings;

    /** 记录创建时间，默认为当前时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录创建时间，默认为当前时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createdAt;

    /** 记录更新时间，默认为当前时间，更新时自动刷新 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录更新时间，默认为当前时间，更新时自动刷新", width = 30, dateFormat = "yyyy-MM-dd")
    private Date updatedAt;

    /** 分类描述，用于描述该分类的特点或用途，例如“包含主食和饮品”等，允许为空 */
    @Excel(name = "分类描述，用于描述该分类的特点或用途，例如“包含主食和饮品”等，允许为空")
    private String categoryDescription;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setCategoryName(String categoryName)
    {
        this.categoryName = categoryName;
    }

    public String getCategoryName()
    {
        return categoryName;
    }

    public void setCategoryCode(String categoryCode)
    {
        this.categoryCode = categoryCode;
    }

    public String getCategoryCode()
    {
        return categoryCode;
    }

    public void setPackageCount(Long packageCount)
    {
        this.packageCount = packageCount;
    }

    public Long getPackageCount()
    {
        return packageCount;
    }

    public void setDisplayOrder(Long displayOrder)
    {
        this.displayOrder = displayOrder;
    }

    public Long getDisplayOrder()
    {
        return displayOrder;
    }

    public void setStatus(Integer status)
    {
        this.status = status;
    }

    public Integer getStatus()
    {
        return status;
    }

    public void setAllowPriceChange(String allowPriceChange)
    {
        this.allowPriceChange = allowPriceChange;
    }

    public String getAllowPriceChange()
    {
        return allowPriceChange;
    }

    public void setAllowOrderDiscount(String allowOrderDiscount)
    {
        this.allowOrderDiscount = allowOrderDiscount;
    }

    public String getAllowOrderDiscount()
    {
        return allowOrderDiscount;
    }

    public void setDiscountMethod(String discountMethod)
    {
        this.discountMethod = discountMethod;
    }

    public String getDiscountMethod()
    {
        return discountMethod;
    }

    public void setIsGiftOrAddon(String isGiftOrAddon)
    {
        this.isGiftOrAddon = isGiftOrAddon;
    }

    public String getIsGiftOrAddon()
    {
        return isGiftOrAddon;
    }

    public void setSupportSelfOrdering(String supportSelfOrdering)
    {
        this.supportSelfOrdering = supportSelfOrdering;
    }

    public String getSupportSelfOrdering()
    {
        return supportSelfOrdering;
    }

    public void setIncludeInMinConsumption(String includeInMinConsumption)
    {
        this.includeInMinConsumption = includeInMinConsumption;
    }

    public String getIncludeInMinConsumption()
    {
        return includeInMinConsumption;
    }

    public void setIncludeInMemberPoints(String includeInMemberPoints)
    {
        this.includeInMemberPoints = includeInMemberPoints;
    }

    public String getIncludeInMemberPoints()
    {
        return includeInMemberPoints;
    }

    public void setIncludeInPointsRedemption(String includeInPointsRedemption)
    {
        this.includeInPointsRedemption = includeInPointsRedemption;
    }

    public String getIncludeInPointsRedemption()
    {
        return includeInPointsRedemption;
    }

    public void setIncludeInPointsDeduction(String includeInPointsDeduction)
    {
        this.includeInPointsDeduction = includeInPointsDeduction;
    }

    public String getIncludeInPointsDeduction()
    {
        return includeInPointsDeduction;
    }

    public void setIncludeInManualDiscount(String includeInManualDiscount)
    {
        this.includeInManualDiscount = includeInManualDiscount;
    }

    public String getIncludeInManualDiscount()
    {
        return includeInManualDiscount;
    }

    public void setPrintSettings(String printSettings)
    {
        this.printSettings = printSettings;
    }

    public String getPrintSettings()
    {
        return printSettings;
    }

    public void setCreatedAt(Date createdAt)
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt()
    {
        return createdAt;
    }

    public void setUpdatedAt(Date updatedAt)
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt()
    {
        return updatedAt;
    }

    public void setCategoryDescription(String categoryDescription)
    {
        this.categoryDescription = categoryDescription;
    }

    public String getCategoryDescription()
    {
        return categoryDescription;
    }

    public void setPhone(String phone)
    {
        this.phone = phone;
    }

    public String getPhone()
    {
        return phone;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("categoryName", getCategoryName())
                .append("categoryCode", getCategoryCode())
                .append("packageCount", getPackageCount())
                .append("displayOrder", getDisplayOrder())
                .append("status", getStatus())
                .append("allowPriceChange", getAllowPriceChange())
                .append("allowOrderDiscount", getAllowOrderDiscount())
                .append("discountMethod", getDiscountMethod())
                .append("isGiftOrAddon", getIsGiftOrAddon())
                .append("supportSelfOrdering", getSupportSelfOrdering())
                .append("includeInMinConsumption", getIncludeInMinConsumption())
                .append("includeInMemberPoints", getIncludeInMemberPoints())
                .append("includeInPointsRedemption", getIncludeInPointsRedemption())
                .append("includeInPointsDeduction", getIncludeInPointsDeduction())
                .append("includeInManualDiscount", getIncludeInManualDiscount())
                .append("printSettings", getPrintSettings())
                .append("createdAt", getCreatedAt())
                .append("updatedAt", getUpdatedAt())
                .append("categoryDescription", getCategoryDescription())
                .append("phone", getPhone())
                .toString();
    }
}
